#ifndef HPLCPUMPSYSTEMEXTERNPAGE_H
#define HPLCPUMPSYSTEMEXTERNPAGE_H

#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>

class HplcPumpSystemExternPage : public QWidget
{
    Q_OBJECT
public:
    explicit HplcPumpSystemExternPage(QWidget *parent = nullptr);
    virtual ~HplcPumpSystemExternPage() override;

protected:
    virtual void closeEvent(QCloseEvent *event) override;

public slots:
    void onParseCompleted(int id, const QVariant &var);

private:
    // work mode
    QLabel *m_lbWorkMode;
    QLineEdit *m_leWorkMode;
    QPushButton	*m_pbSetWorkMode;
    QPushButton	*m_pbGetWorkMode;
    QHBoxLayout *hblWorkMode;

    // pump material
    QLabel *m_lbPumpMaterial;
    QLineEdit *m_lePumpMaterial;
    QPushButton	*m_pbSetPumpMaterial;
    QPushButton	*m_pbGetPumpMaterial;
    QHBoxLayout *hblPumpMaterial;

    // current rpm
    QLabel *m_lbCurrentRpm;
    QLineEdit *m_leCurrentRpm;
    QPushButton	*m_pbSetCurrentRpm;
    QPushButton	*m_pbGetCurrentRpm;
    QHBoxLayout *hblCurrentRpm;
};

#endif // HPLCPUMPSYSTEMEXTERNPAGE_H
